#ifndef CQUESTION_H
#define CQUESTION_H

#include <QString>
#include "CListAnswer.h"

class CQuestion
{

enum questionType
{
    questionSingle=0,
    questionMulti=1
};

private:
    QString textQuestion;
    CListAnswer listAnswer;
    QString textComment;
    int whoAmI;
    bool _isChanged;
    bool _new;

public:
    CQuestion();

    void setTextQuestion(const QString text);
    QString getTextQuestion() const;

    void setComment(QString text);
    QString getComment() const;

    void setListAnswer(const CListAnswer listAnswer = CListAnswer());
    CListAnswer getListAnswer() const;

    void setQuestionType(int whoAmI);
    int getQuestionType() const;

    void changed(bool f);
    bool isChanged();
    void setNew(bool f);
    bool isNew();

//    QString toString();
};
#endif
